import request from '@/utils/request'

// 查询楼盘信息列表
export function listPremises(query) {
  return request({
    url: '/houses/premises/list',
    method: 'get',
    params: query
  })
}

// 查询楼盘信息详细
export function getPremises(id) {
  return request({
    url: '/houses/premises/' + id,
    method: 'get'
  })
}

// 新增楼盘信息
export function addPremises(data) {
  return request({
    url: '/houses/premises',
    method: 'post',
    data: data
  })
}

// 修改楼盘信息
export function updatePremises(data) {
  return request({
    url: '/houses/premises',
    method: 'put',
    data: data
  })
}

// 删除楼盘信息
export function delPremises(id) {
  return request({
    url: '/houses/premises/' + id,
    method: 'delete'
  })
}
